package org.chen.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("avatar_sync_record")
public class AvatarSyncRecord {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;
    
    // 同步时间
    @TableField("sync_time")
    private LocalDateTime syncTime;
    
    // 同步状态：SUCCESS/FAILED
    private String status;
    
    // 新增数量
    @TableField("added_count")
    private Integer addedCount;
    
    // 更新数量
    @TableField("updated_count")
    private Integer updatedCount;
    
    // 失败数量
    @TableField("failed_count")
    private Integer failedCount;
    
    // 错误信息
    @TableField("error_message")
    private String errorMessage;
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}